package other_其他模式.intercepting_filter_pattern_拦截过滤器模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/10/14:06
 * @Description:
 */
public class InterceptingFilterPatternDemo {
	public static void main(String[] args) {
		FilterManger filterManger = new FilterManger(new Target());
		filterManger.setFilter(new DebugFilter());
		filterManger.setFilter(new AuthenticationFilter());

		Client client = new Client(filterManger);

		client.sendRequest("一个请求");
	}
}
